package cn.qin.xhangapi.util.response;

import lombok.AllArgsConstructor;

/**
 * 响应状态枚举
 *
 * @author 多仔ヾ
 */
@AllArgsConstructor
public enum ResponseStatus {

    SUCCESS(200, "操作成功"),
    FAILURE(-1, "操作失败"),
    OF_LOGINED(401, "请先登录"),
    FORBIDDEN(403, "暂无权限"),
    NOT_FOUND(404, "请求出错啦，系统无法请求该资源"),
    ERROR(500, "请求出错啦，系统正在开小差，请稍后再试");

    /** 响应码 **/
    public final Integer code;

    /** 响应信息 **/
    public final String message;

}
